<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="java.util.List"%>

<%@include file='head.jsp'%>

<body>
<div id="page" class="shell">
    <%@include file='menu_admin.jsp'%>    
	
	<!-- Main -->
	<div id="main" class="main-cadastro">
	
            <div class="cadastro">
                <h2>Pagamento de Consertos</h2>
                <form action="Controladora?action=Pagamento" method="post" data-validate="parsley" id="cadastro">
                    <div class="field-holder pad">
                        <label for="conserto">Num. Pedido</label>
                        <select name="conserto" id="conserto">
                            <option selected value="">Selecione</option>
                              <c:forEach var="conserto" items="${listaConserto}">
                                 <c:if test="${listaConserto != null}">
                                     <option value="<c:out value='${conserto.idConserto}'/>"><c:out value="${conserto.pedido.idPedido}" /></option>
                                 </c:if>
                            </c:forEach>
                        </select>
                    </div>
                    <div>
                        <button id="submit" class="submit" type="submit"><i class='icon-ok'></i>Confirma Pagamento</button>
                    </div>
                    <div class="cl">&nbsp;</div>
                </form>
            </div>
			
	</div>
	<!-- END Main -->

	<%@include file="footer.jsp" %>
	<c:if test="${ msg != null }">
            <script type="text/javascript">
                var msg = '${msg}';
                alert(msg);
            </script>
        </c:if>
	<br />
</div>
</body>
</html>
